#pragma once
#include <netinet/in.h>

class GTTcpConnection
{
    public:
    explicit GTTcpConnection(const sockaddr_in& stClientSocket, int nNewSock);
    virtual ~GTTcpConnection();
    

    protected:
    virtual void NewDataArrived(const char* pData, unsigned int uDataLen);
    private:
    static void* ReceiveThreadFunc(void* arg);

    protected:
    sockaddr_in m_stClientSocket;
    int m_nSocket;

};